set(LAUNCHER_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
configure_file(launcher.res.rc.in launcher.res.rc)

add_executable(osgi-start
    Launcher.cc
    ${CMAKE_CURRENT_BINARY_DIR}/launcher.res.rc
)

target_link_libraries(osgi-start OSGi++)

set_target_properties(osgi-start PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY    ${OSGi_BINARY_DIR}/bin
    INSTALL_RPATH               \$ORIGIN/../lib
)

install(TARGETS osgi-start
    EXPORT OSGiTargets
    DESTINATION "${INSTALL_BIN_DIR}" COMPONENT dev
)
